package com.chis.dayreport;

import com.chis.date.DateTime;
import com.chis.jm.pojo.sys.TbSysEmp;
import com.chis.jmdatatimer.comm.TxMgmtModule;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;

/**
 * 
 * @Description 
 * @Company zwx
 * @author wlj
 * @version 2019年03月10日
 */
public class Main {

    public static void main(String[] args) {
//        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"spring.xml"});
//        context.start();
//        TxMgmtModule txMgmtModule = (TxMgmtModule) context.getBean("TxMgmtModule");
//        TbSysEmp tbSysEmp = txMgmtModule.testDate();
//        Date virth = tbSysEmp.getBirthday();
//        System.out.println(virth.getTime());

        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");     // 北京
        String s1 = "1986-05-04 00:00:00";
        String s2 = "1986-05-04 01:00:00";
        try {
            Date d1 = sdf.parse(s1);
            System.out.println(d1.getTime());
            Date d2 = sdf.parse(s2);
            System.out.println(d2.getTime());

        } catch (ParseException e) {
            e.printStackTrace();
        }


    }
}
